package com.db.person.service;

import com.db.person.bean.UserVisit;
import com.db.person.mapper.UserVisitMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserVisitServiceImpl implements IUserVisitService{

    @Autowired
    private UserVisitMapper userVisitMapper;

    @Override
    public List<UserVisit> getAll() {
        return userVisitMapper.getAll();
    }

    @Override
    public List<UserVisit> getByContent(String content) {
        return userVisitMapper.getByContent(content);
    }

    @Override
    public void deleteById(Integer id) {
        userVisitMapper.deleteById(id);
    }

    @Override
    public void deleteByIds(String ids) {
        userVisitMapper.deleteByIds(ids);
    }

    @Override
    public void insert(UserVisit userVisit) {
        userVisitMapper.insert(userVisit);
    }

    @Override
    public void updateById(String exitTime, Integer id) {
        userVisitMapper.updateById(exitTime,id);
    }
}
